﻿namespace WMS6.Web.OutboundService2Ref
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="LoadDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class LoadDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string ConsigneeIDField;
        [OptionalField]
        private string ConsigneeNameField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternalOrderIDField;
        [OptionalField]
        private string ExternalShipmentIDField;
        [OptionalField]
        private string FlowOrderIDField;
        [OptionalField]
        private int LineIDField;
        [OptionalField]
        private string LoadIDField;
        [OptionalField]
        private string OhTypeField;
        [OptionalField]
        private string OrderIDField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private string RouteField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private double TotalCostField;
        [OptionalField]
        private double TotalCubeField;
        [OptionalField]
        private decimal TotalUnitsField;
        [OptionalField]
        private double TotalValueField;
        [OptionalField]
        private double TotalWeightField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string ConsigneeID
        {
            get
            {
                return this.ConsigneeIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ConsigneeIDField, value))
                {
                    this.ConsigneeIDField = value;
                    this.RaisePropertyChanged("ConsigneeID");
                }
            }
        }

        [DataMember]
        public string ConsigneeName
        {
            get
            {
                return this.ConsigneeNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ConsigneeNameField, value))
                {
                    this.ConsigneeNameField = value;
                    this.RaisePropertyChanged("ConsigneeName");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternalOrderID
        {
            get
            {
                return this.ExternalOrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalOrderIDField, value))
                {
                    this.ExternalOrderIDField = value;
                    this.RaisePropertyChanged("ExternalOrderID");
                }
            }
        }

        [DataMember]
        public string ExternalShipmentID
        {
            get
            {
                return this.ExternalShipmentIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalShipmentIDField, value))
                {
                    this.ExternalShipmentIDField = value;
                    this.RaisePropertyChanged("ExternalShipmentID");
                }
            }
        }

        [DataMember]
        public string FlowOrderID
        {
            get
            {
                return this.FlowOrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FlowOrderIDField, value))
                {
                    this.FlowOrderIDField = value;
                    this.RaisePropertyChanged("FlowOrderID");
                }
            }
        }

        [DataMember]
        public int LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!this.LineIDField.Equals(value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public string LoadID
        {
            get
            {
                return this.LoadIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoadIDField, value))
                {
                    this.LoadIDField = value;
                    this.RaisePropertyChanged("LoadID");
                }
            }
        }

        [DataMember]
        public string OhType
        {
            get
            {
                return this.OhTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OhTypeField, value))
                {
                    this.OhTypeField = value;
                    this.RaisePropertyChanged("OhType");
                }
            }
        }

        [DataMember]
        public string OrderID
        {
            get
            {
                return this.OrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderIDField, value))
                {
                    this.OrderIDField = value;
                    this.RaisePropertyChanged("OrderID");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public string Route
        {
            get
            {
                return this.RouteField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RouteField, value))
                {
                    this.RouteField = value;
                    this.RaisePropertyChanged("Route");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public double TotalCost
        {
            get
            {
                return this.TotalCostField;
            }
            set
            {
                if (!this.TotalCostField.Equals(value))
                {
                    this.TotalCostField = value;
                    this.RaisePropertyChanged("TotalCost");
                }
            }
        }

        [DataMember]
        public double TotalCube
        {
            get
            {
                return this.TotalCubeField;
            }
            set
            {
                if (!this.TotalCubeField.Equals(value))
                {
                    this.TotalCubeField = value;
                    this.RaisePropertyChanged("TotalCube");
                }
            }
        }

        [DataMember]
        public decimal TotalUnits
        {
            get
            {
                return this.TotalUnitsField;
            }
            set
            {
                if (!this.TotalUnitsField.Equals(value))
                {
                    this.TotalUnitsField = value;
                    this.RaisePropertyChanged("TotalUnits");
                }
            }
        }

        [DataMember]
        public double TotalValue
        {
            get
            {
                return this.TotalValueField;
            }
            set
            {
                if (!this.TotalValueField.Equals(value))
                {
                    this.TotalValueField = value;
                    this.RaisePropertyChanged("TotalValue");
                }
            }
        }

        [DataMember]
        public double TotalWeight
        {
            get
            {
                return this.TotalWeightField;
            }
            set
            {
                if (!this.TotalWeightField.Equals(value))
                {
                    this.TotalWeightField = value;
                    this.RaisePropertyChanged("TotalWeight");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

